package com.test.demo.domain;

import com.test.demo.util.GeometryTools;
import com.test.demo.util.SvgUtil;

import java.io.Serializable;

public class Robot7 extends Robot implements Serializable {
    private static final long serialVersionUID = 1L;
    public Robot7(int x, int y) {
        super.width = 60;
        super.height = 75;
        super.x = x;
        super.y = y;
        super.name = "圣诞树";
        super.color = getColorByName();
        shape = SvgUtil.loadSVGPathFromFile(SvgUtil.class.getResourceAsStream("/icons/robot-7.svg"));
        geometry = GeometryTools.shapeToGeometry(shape);
        isBuildings = true;
    }

}
